﻿CREATE TABLE [ProductImage].[ProductImageView]
(
	[TenantId] [uniqueidentifier] NOT NULL,
	[ViewId] [uniqueidentifier] NOT NULL,
	[WellKnownViewCode] [tinyint] NOT NULL,
	[DisplayOrder] [int] NOT NULL,
	[DefaultName] [ProductImage].[TProductImageViewName] NOT NULL,
	CONSTRAINT [PK_ProductImageView] PRIMARY KEY CLUSTERED ([TenantId] ASC, [ViewId] ASC) ON [PRIMARY],
	CONSTRAINT [UQ_ProductImageView_TenantId_WellKnownViewCode] UNIQUE NONCLUSTERED ([TenantId] ASC, [WellKnownViewCode] ASC) ON [PRIMARY]
) ON [PRIMARY]
